Automatically populate the git submodules in autogen.sh
authorStef Walter <stefw@gnome.org>
Mon, 30 Jul 2012 11:04:00 +0000 (13:04 +0200)
committerStef Walter <stefw@gnome.org>
Tue, 31 Jul 2012 13:26:42 +0000 (15:26 +0200)
autogen.sh

index 6035bc02934c09acecb11245d19aaa569e1dc60f..4e9fcaef7a58656a1c8c35bfa56ac81b2952a91e 100755 (executable)
@@ -16,5 +16,14 @@ mkdir -p m4
 
 autoreconf --force --install --verbose
 
+# Fetch submodules if needed
+if test ! -f src/libgsystem/README;
+then
+  echo "+ Setting up submodules"
+  git submodule init
+fi
+git submodule update
+
+
 cd $olddir
 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"